package com.dyh.quickdemozwei.springhook;//package com.leqee.oms.server.api.ready;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;




/*
@Author=Joey Wheeler
@Date=2021/5/26 17:24
*/
@Component
public class AppReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {



    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        ShopSessionStatic.init(event.getApplicationContext().getBean(ShopSessionService.class));

        System.out.println();

    }


}
